
const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: '/',
  lintOnSave: false,
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/ibem/api': {
        target: "https://v2.ibeem.cn",
        ws: true,
        changeOrigin: true,
      },
    },
    client: {
      overlay: false,
    }
  },
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "iBEMLab门户网站后台管理系统";
      return args;
    });
  },
  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    name: 'ibem',
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  },
};
